package org.dandsoft.blackbox;

import org.dandsoft.blackbox.counter.RelationshipCounter;

import java.util.Map;
import java.util.Hashtable;
import java.util.Collection;

/**
 * @author Vilyuzhanin Denis (Fin)
 */
public class LogicalBox {

    private Map<SignalId, SignalInfo> incubator = new Hashtable<SignalId, SignalInfo>();
    private Map<SignalId, SignalInfo> quarantine = new Hashtable<SignalId, SignalInfo>();
    private Map<SignalId, SignalInfo> arguments = new Hashtable<SignalId, SignalInfo>();

    public void addSignals(Collection<SignalId> signals) {
        for (Map.Entry<SignalId, SignalInfo> signalEntry : incubator.entrySet()) {

        }
    }

    protected boolean isCandidate(RelationshipCounter counter) {
        return counter.getInversionActive() == 0 || counter.getInversionPassive() == 0 ||
                counter.getNormalActive() == 0 || counter.getNormalPassive() == 0;
    }

    static class SignalInfo {
        public SignalId signalId;
        public RelationshipCounter counter;
    }
}
